package cn.iocoder.an.module.business.controller.admin.equipmentcheckplan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.an.framework.excel.core.annotations.DictFormat;
import cn.iocoder.an.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 点检计划 Response VO")
@Data
@ExcelIgnoreUnannotated
public class EquipmentCheckPlanRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "944")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "计划名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("计划名称")
    private String name;

    @Schema(description = "点检频率")
    @ExcelProperty(value = "点检频率", converter = DictConvert.class)
    @DictFormat("check_repeat") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private BigDecimal checkRepeat;

    @Schema(description = "点检对象", example = "13338")
    @ExcelProperty("点检对象")
    private List<Long> equipmentTypeId;

    @Schema(description = "点检对象名称", example = "李四")
    @ExcelProperty("点检对象名称")
    private String equipmentTypeName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}